
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gitbook-plugin-prism
Advanced tools
Add the plugin to your book.json
, and disable default GitBook code highlighting:
{
"plugins": ["prism", "-highlight"]
}
css
Override default styles. All css files must reside in the same folder.
"pluginsConfig": {
"prism": {
"css": [
"prismjs/themes/prism-solarizedlight.css"
]
}
}
lang
Support non-standard syntax prefixes by aliasing existing prefixes.
"pluginsConfig": {
"prism": {
"lang": {
"flow": "typescript"
}
}
}
ignore
Due to other plugins using code block notion to denote other functionality, you can ignore certain langs
"pluginsConfig": {
"prism": {
"ignore": [
"mermaid",
"eval-js"
]
}
}
https://github.com/PrismJS/prism
prismjs/themes/prism-okaidia.css
prismjs/themes/prism-solarizedlight.css
prismjs/themes/prism-tomorrow.css
prismjs/themes/prism-dark.css
prismjs/themes/prism-coy.css
https://github.com/atelierbram/syntax-highlighting
syntax-highlighting/assets/css/prism/prism-base16-ocean.dark.css
syntax-highlighting/assets/css/prism/prism-base16-google.light.css
syntax-highlighting/assets/css/prism/prism-xonokai.css
Originally based on https://github.com/spricity/google_code_prettify.
Apache 2
FAQs
Prism highlighting for gitbook
The npm package gitbook-plugin-prism receives a total of 533 weekly downloads. As such, gitbook-plugin-prism popularity was classified as not popular.
We found that gitbook-plugin-prism demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.